public class Main {
    public static void main(String[] args) {
        System.out.println("Hello world!");

        PowerAdapter adapter = new PowerAdapter(new AC220());
        System.out.println("适配前"+adapter.outputVoltage());   //输出原来的电压
        System.out.println("适配后"+adapter.output5V());
        System.out.println("适配后"+adapter.output12V()+"V");
    }
}